//
//  GoodPushTableViewCell.m
//  Toyohu
//
//  Created by Heige on 16/4/13.
//  Copyright © 2016年 celia. All rights reserved.
//

#import "GoodPushTableViewCell.h"
#import <UIImageView+WebCache.h>
#import "HomePageNewsModel.h"
@implementation GoodPushTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)setModel:(HomePageNewsModel *)model
{
    _model = model;
    _newsTitle.text = model.title;
    _newsContent.text = model.sketch;
    _likeNumbers.text = [NSString stringWithFormat:@"%.f",model.favouriteNum];
    _commentNum.text =[NSString stringWithFormat:@"%.f",model.commentNum];
    [_newsImg sd_setImageWithURL:[NSURL URLWithString:model.imgUrl]];
    _tagLable.text = model.type;
    
}

@end
